//
//  UIViewController+Category.m
//  CreditAddressBook
//
//  Created by Lee on 15/7/20.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import "UIViewController+Category.h"

@implementation UIViewController (Category)

+ (instancetype)xc_loadFromNibUsingClassName {
    NSString *nibName = [[NSStringFromClass(self) componentsSeparatedByString:@"."] lastObject];
    return [[self alloc] initWithNibName:nibName bundle:nil];
}

+ (instancetype)le_loadFromStoryBoard:(UIStoryboard *)sb {
    NSString *identifier = [[NSStringFromClass(self) componentsSeparatedByString:@"."] lastObject];
    return [sb instantiateViewControllerWithIdentifier:identifier];
}
@end
